double mypower(double base, int exp);